package br.com.linhadotempo.persistence;

import org.hibernate.cfg.Configuration;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class GerarBanco {
	
	private static final String PERSISTENCE_UNIT = "taimlainPU";
	
	public static void main(String[] args) {

		
		Ejb3Configuration cfg = new Ejb3Configuration();

		cfg.configure(PERSISTENCE_UNIT, null);

		Configuration hbmcfg = cfg.getHibernateConfiguration();

		SchemaExport schemaExport = new SchemaExport(hbmcfg);

		schemaExport.create(true, true);
		
		
		

	}

}
